projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e18919e
)
src: fix tests
author
Felix Krull
<f_krull@gmx.de>
Sun, 18 Oct 2020 15:00:28 +0000
(17:00 +0200)
committer
Colin Walters
<walters@verbum.org>
Fri, 6 May 2022 16:53:56 +0000
(12:53 -0400)
rust-bindings/rust/src/sysroot_deploy_tree_opts.rs
patch
|
blob
|
history
diff --git
a/rust-bindings/rust/src/sysroot_deploy_tree_opts.rs
b/rust-bindings/rust/src/sysroot_deploy_tree_opts.rs
index 040ab63d131fa6feb78b82d8612b6cfe10083af8..1fed6026d358dbf69a500f242c8044bca2287e2d 100644
(file)
--- a/
rust-bindings/rust/src/sysroot_deploy_tree_opts.rs
+++ b/
rust-bindings/rust/src/sysroot_deploy_tree_opts.rs
@@
-48,7
+48,7
@@
mod tests {
use super::*;
use std::{ffi::CStr, ptr::null_mut};
- unsafe fn ptr_array_
as
_slice<'a, T>(ptr: *mut *mut T) -> &'a [*mut T] {
+ unsafe fn ptr_array_
to
_slice<'a, T>(ptr: *mut *mut T) -> &'a [*mut T] {
let mut len = 0;
while !(*ptr.offset(len)).is_null() {
len += 1;